<?php

// DNSPOD相关配置
return [
    'domain' => [
        'domainSuffix' => [
        	'default' => '.bbdyun.net',
            'inner'   => '.bbdyun.com',
            'outer'   => '.bbdyun.net',
        ],
        'domainMark' => [
             //源站模板
            'tpl' => '.tpl',
            //源站
            'src' => '.src',
            'plc' => '.plc',
            'ser' => '.ser',
        ],
    ],

    // IP库监控相关
    'ip' => [
        // 基础子域
        'subDomain' => 'ip.library.com',
        // 子域记录上限
        'upperLimit' => 30,
    ],

    // 警告通知邮件地址,用于解析记录、解析监控相关的通知
    'warnEmail' => [
        'guohui.jian@sinobbd.com'
    ],

    'api' => [
        // 接口地址
        'apiHost' => 'https://dnsapi.cn/',
        // 接口身份验证token
        'apiToken' => '23051,24c2b2d96977761f47fc0905f0797c13',
        // 接口传参参数格式
        'apiFormat' => 'json',
        // 用户代理
        'userAgent' => 'DNSPod API Web Client/1.0.0 (guohui.jian@sinobbd.com)',
        // DNSPOD购买域名: ID && grade
        'domainId' => [
            'default' => [
                'id' => 56340799,
                'grade' => 'DP_Ultra',
            ],
            'inner' => [
                'id' => 56252931,   // bbdyun.com
                'grade' => 'DP_Ultra',
            ],
            'outer' => [
                'id' => 56340799,   // bbdyun.net
                'grade' => 'DP_Ultra',
            ],
        ],
        // 融合域名ID
        'fuseDomainId' => [
            'default' => [
                'id' => 43441154,
            ],
            'inner' => [
                'id' => 43441154,
            ],
            'outer' => [
                'id' => 43441154,
            ],
        ],
        // 监控主机头
        'monitorHost' => 'dnspod.bbdcdn.com',
        // 监控类型，支持{http|https}
        'monitorType' => 'http',
        // 监控端口
        'port' => '80',
        // 监控间隔，支持{60|180|360|}
        'monitorInterval' => 60,
        // 监控节点
        'points' => 'ctc,cuc,cmc',
        // 监控路径
        'monitorPath' => '/index.html?record=',
        // 监控回调地址
        'callbackUrl' => [
            'default' => 'http://boss.bbdcdn.net/Notify/customerMonitor',
            'inner'   => 'http://boss.bbdcdn.net/Notify/ipMonitor',
            'outer'   => 'http://boss.bbdcdn.net/Notify/customerMonitor'
        ],
        // 监控回调秘钥
        'callbackKey' => '3HKT8HR6',
        // 预留短信通知
        'smsNotice' => '18701033352',
        // 预留邮件通知
        'emailNotice' => '',
        // 监控规则
        'bakIp' => [
            // 只监控，不切换
            'pass' => 'pass',
            // 智能暂停v2, 发现ip宕机后直接暂停该记录，无其它规则
            'pause2' => 'pause2',
            // 智能切换
            'auto' => 'auto',
            // 老版智能暂停功能
            'pause' => 'pause',
        ],
        // 全部监控节点
        'allPoints' => [
            'cmc' => '上海移动',
            'cmc-2' => '深圳移动',
            'cmc-3' => '成都移动',
            'cmc-4' => '天津移动',

            'ctc' => '上海电信',
            'ctc-2' => '深圳电信',
            'ctc-3' => '成都电信',
            'ctc-4' => '杭州电信',

            'cuc' => '深圳联通',
            'cuc-2' => '上海联通',
            'cuc-3' => '杭州联通',
            'cuc-4' => '天津联通',
        ],
        // 解析线路配置结构
        'recordLine' => [
            // 导航(一级分类)
            'navList' => [
                [
                    'id' => 12,
                    'line_name' => '电信'
                ],
                [
                    'id' => 13,
                    'line_name' => '联通'
                ],
                [
                    'id' => 15,
                    'line_name' => '移动'
                ],
                [
                    'id' => 11,
                    'line_name' => '国内其他'
                ],
                [
                    'id' => 10,
                    'line_name' => '海外其他'
                ]
            ],
            // 排除的线路
            'exceptLine' => [
                '电信',
                '联通',
                '移动',
                '国内',
                '国外',
                '默认'
            ]
        ],
    ],
];
